//
//  config.h
//  Koina
//
//  Created by welldone on 13-9-2.
//  Copyright (c) 2013年 net.koina. All rights reserved.
//



#ifndef Koina_config_h
#define Koina_config_h

#define TAB_HIGHT 49
#define NAV_HIGHT 44
#define AT_FLAG @"//@"

#define COMMENT_FONT 12.0f
#define COMMENT_LINE_SPACE 3
#define IMG_RECT CGSizeMake(640, 428)



#define APP_ID @"1012907804"

#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)//用来获取手机的系统，判断系统是多少


#define isIphone4 ([UIScreen mainScreen ].applicationFrame.size.height==460)

#define isIphone5 ([UIScreen mainScreen ].applicationFrame.size.height==548)




#define isIOS8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0f)
#define isIOS71 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.1f)
#define isIOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f)
#define MSGWidth 238

#define PMW ([UIScreen mainScreen ].applicationFrame.size.width)

#define PMH ([UIScreen mainScreen ].applicationFrame.size.height)


#define DEFAULT_IMG @"btn_pressed"

#define NoImgColor  ([UIColor colorWithRed:(float)0xd7/(float)0xff green:(float)0xd7/(float)0xff blue:(float)0xd7/(float)0xff alpha:1])











#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


#define GET_VIEW_BOTTOM_POS(view)  view.frame.origin.y+view.frame.size.height

#define GET_VIEW_RIGHT_POS(view)  view.frame.origin.x+view.frame.size.width






#define blackFrontName  @"TrebuchetMS-Bold"//黑体
#define FZLTCHFrontName  @"FZLanTingHei-B-GBK"//方正兰亭粗黑





























#endif
